<?php
namespace server\core;

use think\App;
use think\Controller;

/**
 * Class Controller
 * 继承该类的控制器实现swoole各种特性功能
 * 否则只是普通的web服务器功能
 */
class AsyncController{
    public $http_server = null; // swoole的服务对象
    //protected $swl_fd; // 客服端标识

    public function __construct()
    {
        $this->http_server = $_POST['http_server'];
        $_POST['http_server'] = null;
        unset($_POST['http_server']);
    }

}